import "@/styles/globals.css";
import 'antd/dist/reset.css';
import type { AppProps } from "next/app";
import { Layout } from "@/components/Layout";
import { useRouter } from "next/router";

export default function App({ Component, pageProps }: AppProps) {
  // return <Component {...pageProps} />;
  const router = useRouter();
  return router.pathname === '/login' ? (
    <Component {...pageProps} />
  ) : (
    <Layout>
      <Component {...pageProps} />
    </Layout >
  )
}
